﻿using Anagramme.Converters;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Anagramme.Common.Tests.Converters
{
    [TestClass]
    public class NotConverterTests
    {
        [TestMethod]
        public void ConvertTrueReturnsFalse()
        {
            bool expected = false;
            NotConverter converter = new NotConverter();
            object actual = converter.Convert(true, null, null, null);
            
            Assert.AreEqual(expected, actual);
        }
        
        [TestMethod]
        public void ConvertFalseReturnsTrue()
        {
            bool expected = true;
            NotConverter converter = new NotConverter();
            object actual = converter.Convert(false, null, null, null);

            Assert.AreEqual(expected, actual);
        }

        [TestMethod]
        public void ConvertBackTrueReturnsFalse()
        {
            bool expected = false;
            NotConverter converter = new NotConverter();
            object actual = converter.ConvertBack(true, null, null, null);

            Assert.AreEqual(expected, actual);
        }

        [TestMethod]
        public void ConvertBackFalseReturnsTrue()
        {
            bool expected = true;
            NotConverter converter = new NotConverter();
            object actual = converter.ConvertBack(false, null, null, null);

            Assert.AreEqual(expected, actual);
        }
    }
}
